import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/cabinetpermissionlog/` + url, ...arg)

/**
 * 权限日志Api接口管理器
 *
 * @author kongxm
 * @date  2022/11/21 21:35
 **/
export default {
	// 获取权限日志分页
	bizCabinetPermissionLogPage(data) {
		return request('page', data, 'get')
	},
	// 获取权限日志列表
	bizCabinetPermissionLogList(data) {
		return request('list', data, 'get')
	},
	// 提交权限日志表单 edit为true时为编辑，默认为新增
	bizCabinetPermissionLogSubmitForm(data, edit = false) {
		return request(edit ? 'add' : 'edit', data)
	},
	// 删除权限日志
	bizCabinetPermissionLogDelete(data) {
		return request('delete', data)
	},
	// 获取权限日志详情
	bizCabinetPermissionLogDetail(data) {
		return request('detail', data, 'get')
	}
}
